package com.demo.apply.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.demo.apply.model.TDApply;
import com.demo.apply.dao.TDApplyMapper;
import com.demo.apply.model.User;
import com.demo.apply.service.ITDApplyService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 申请表 服务实现类
 * </p>
 *
 * @author 
 * @since 2021-11-10
 */
@Service
public class TDApplyServiceImpl extends ServiceImpl<TDApplyMapper, TDApply> implements ITDApplyService {

    @Autowired
    TDApplyMapper mapper;


    @Override
    public List<Map<String, Object>> list(TDApply tdApply) {
        return this.baseMapper.list(tdApply);
    }

    @Override
    public User check(String usernanme, String password) {
        return mapper.getUserByUserNameAndPassword(usernanme,password);
    }

    @Override
    public List<Map<String, Object>> getPageList(Page<TDApply> page, String applyName, String applySerial, String count, String money, String type, String orderByField, boolean asc) {
        return mapper.getPageList(page,applyName,applySerial,count,money,type,orderByField,asc);
    }
}
